package com.yuntu.dao;

import com.yuntu.pojo.Peitems;
import org.apache.ibatis.annotations.Param;
import com.yuntu.tools.PageUtil;

import java.util.List;

public interface PeitemsMapper {
    //登录
    Peitems getLoginPe(@Param("itemname") String itemname)throws Exception;
    //查询全部信息
    List<Peitems> getPeitemsList() throws Exception;
    //添加
    int addPeitemsType(Peitems peitems)throws Exception;
    //删除
    int deletePeitemsById(@Param("itemid") int itemid)throws Exception;
    //根据id查询
    Peitems getPeitemsById(@Param("itemid") int itemid)throws Exception;
    //修改
    int updatePeitems(Peitems peitems)throws Exception;
    //分页信息
    List<Peitems> getPageAll(PageUtil<Peitems> pageUtil) throws Exception;
    //获取总数量
    int getCount() throws Exception;
    //验证
    Peitems getExits(String itemname)throws Exception;
}
